package com.kobeliu.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/auth")
public class AuthController {

    @Value("${server.port}")
    private String port;

    @RequestMapping(method = RequestMethod.GET,path = "hello")
    public Object hello(){

        log.info("++++++++++++++++++++++++++++++++++++++++");
        log.info("当前访问的端口是：{}",port);
        log.info("++++++++++++++++++++++++++++++++++++++++");

        return "当前访问的端口是："+port;

    }
}
